package com.lyf.design.practice.theory.structure.proxy.staticproxy.v1;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class ActionProxy implements Actionable{
    Actionable actionable;

    // 代理对象
    public ActionProxy(Actionable actionable) {
        this.actionable = actionable;
    }

    public Actionable getActionable() {
        return actionable;
    }

    public void setActionable(Actionable actionable) {
        this.actionable = actionable;
    }

    @Override
    public void talk() {
        actionable.talk();
    }

    @Override
    public void run() {

    }

    @Override
    public void eat() {

    }
}
